package com.example.demo.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.dto.FeedbackDto;
import com.example.demo.mapper.FeedbackMapper;
import com.example.demo.service.FeedbackService;
import com.woniuxy.movice.entity.Combo;

@Service
@Transactional
public class FeedbackServiceImpl implements FeedbackService{
	
	@Resource
	private FeedbackMapper feedbackMapper;
	
	@Override
	public List<FeedbackDto> getAllfeedback() {
		return feedbackMapper.getAllfeedback();
	}

	@Override
	public String solveFeedback(int fid) {
		if(feedbackMapper.solveFeedback(fid)>0) {
			return "成功";
		}else {
			return "失败";
		}
	}

}
